"""
@Project ：TeachingInterfacePro 
@File    ：jsonread.py
@IDE     ：PyCharm 
@Author  ：ceiling
@Date    ：2025/4/17 21:13 
"""

body = {
    "page": 1,
    "size": 0,
    "total": 1,
    "items": [
        {
            "spec": {
                "displayName": "默认分类",
                "slug": "default",
                "description": "这是你的默认分类，如不需要，删除即可。",
                "cover": "",
                "template": "",
                "priority": 0,
                "children": [],
                "preventParentPostCascadeQuery": False,
                "hideFromList": False
            },
            "status": {
                "permalink": "/categories/default",
                "postCount": 1,
                "visiblePostCount": 1
            },
            "apiVersion": "content.halo.run/v1alpha1",
            "kind": "Category",
            "metadata": {
                "finalizers": [
                    "category-protection"
                ],
                "name": "76514a40-6ef1-4ed9-b58a-e26945bde3ca",
                "annotations": {
                    "content.halo.run/permalink-pattern": "categories",
                    "content.halo.run/last-hidden-state": "false"
                },
                "version": 2,
                "creationTimestamp": "2025-02-17T13:37:20.428149533Z"
            }
        }
    ]
}

print(body["items"][0]["metadata"]["annotations"]["content.halo.run/permalink-pattern"])


list = ["1", "2"]

print(list[0])
